package com.hjy.product.config;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Controller;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

@Controller
public class ThreadConfig {

    @Bean
    public ExecutorService executorService() {
        return Executors.newFixedThreadPool(100);
    }
}
